package com.csj.DesignPattern.derorator;

public class Client {
    public static void main(String[] args) {
        FastFood friedRice = new FriedRice();
        System.out.println(friedRice.getDescription() + "总价格：" + friedRice.cost());

        friedRice = new Egg(friedRice);
        System.out.println(friedRice.getDescription() + "总价格：" + friedRice.cost());

        friedRice = new Egg(friedRice);
        System.out.println(friedRice.getDescription() + "总价格：" + friedRice.cost());

        friedRice = new Bacon(friedRice);
        System.out.println(friedRice.getDescription() + "总价格：" + friedRice.cost());

    }

}
